<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}

<div class="x-nav">
	<span class="layui-breadcrumb">
		<a>首页</a>
		<a>系统设置</a>
		<a>菜单管理</a>
	</span>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
		<i class="layui-icon" style="line-height:30px">ဂ</i>
	</a>
</div>

<div class="x-body">
	<form action="?" class="layui-form ajaxform" method="post">
		<input type="hidden" name="m" value="{$m}" />
		<input type="hidden" name="c" value="{$c}" />
		<input type="hidden" name="a" value="sort" />
		
		<xblock>
			<button class="layui-btn layui-btn-danger" type="submit" name="dosubmit"><i class="layui-icon"></i>排序</button>
			<button class="layui-btn" type="button" onclick="location.href='{U('system/menu/add')}'"><i class="layui-icon"></i>添加菜单</button>
		</xblock>
		
		<table class="layui-table">
			<thead>
				<tr>
					<th width="80">排序</th>
					<th width="100">id</th>
					<th>名称</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				{$categorys}
			</tbody>
		</table>
		<div class="btn"><input type="submit" class="layui-btn" name="dosubmit" value="排序" /></div>
	</form>
</div>

{template index/footer}